import httpInstance from "@/utils/http.js";

/**
 * 设置用户信息
 * @param userinfo
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function setProfileApi(userinfo) {
    return httpInstance.post('/user/profile', {
        ...userinfo
    })
}

/**
 * 获取用户信息
 * @param id
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getUserinfoApi(id){
    return httpInstance.get(`/user/userInfo/${id}`,)
}
